package cn.keniykey.mc.landterritory.land.api;

public enum ELandType {
	TERRITORY(0,1004010),
	COMMUNITY(1,1004011),
	GROUND(2,1004012);
	
	private final int id;
	private final int lang;
	
	private ELandType(int id,int lang) {
		this.id = id;
		this.lang = lang;
	}
	
	public int getID() {
		return this.id;
	}
	public int getLang() {
		return this.lang;
	}
	public static ELandType getELandType(int id) {
		for(ELandType type : ELandType.values()) {
			if (type.getID() == id) return type;
		}
		throw new RuntimeException("Unknown ID With LandType(未知的领地类型ID)");
	}
}